package cn.kn.triage.common.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author yinzn
 * @create 2020-10-10 11:17
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum RCode {
    SUCCESS(20000,"操作成功！"),
    SYSTEM_ERROR(30001,"系统错误,请与管理员联系"),
    Role_NAME_REPEAT(31001,"角色名字重复"),
    User_NAME_REPEAT(31001,"用户名字重复"),
    NO_PERMS(41001,"Token无效，您无权访问该接口"),
    NO_AUTH(41002,"认证错误"),
    NO_USER (41003,"用户名或密码错误"),
    TOKEN_EXPIRE (41004,"Token已过期，请重新登录!"),
    NOT_PERMS (41005,"您无权访问该接口"),
    ERROR(30000,"操作失败！");

    private Integer code;
    private String msg;

}
